//
//  WatchLocationResponseData.m
//  Kids
//
//  Created by LiTengFei on 14/11/29.
//  Copyright (c) 2014年 90's Technology Co.Ltd. All rights reserved.
//

#import "WatchLocationResponseData.h"
#import "WatchLocationModel.h"
@implementation WatchLocationResponseData
- (id)init
{
    if (self = [super init]) {
        self.model = [[WatchLocationModel alloc]init];
    }
    return self;
}

- (void)analyse:(NSDictionary*)data
{
    NSParameterAssert(data);

    [super analyse:data];
    id object = [data objectForKey:@"info"];

    if ([object isKindOfClass:[NSDictionary class]]) {
        self.model.WIMEI = [object objectForKey:@"WIMEI"];
        self.model.IMEI = [object objectForKey:@"IMEI"];
        self.model.RType = [object objectForKey:@"RType"];
        self.model.GPS = [object objectForKey:@"GPS"];
        self.model.logTime = [object objectForKey:@"logTime"];
    }
    else {
        self.model = [[WatchLocationModel alloc] init];
    }
}
@end
